package com.jinyang.jetpackdemo.bean

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import androidx.databinding.Observable
import androidx.databinding.Observable.OnPropertyChangedCallback
import com.jinyang.jetpackdemo.BR
import com.jinyang.jetpackdemo.util.LjyLogUtil

/**
 * @Author: LiuJinYang
 * @CreateDate: 2021/8/13
 * @Description:
 */
class ArticleItem2(var title: String, author: String, content: String) :
    BaseObservable() {
    @get:Bindable
    var author: String = author
        set(value) {
            field = value
            notifyPropertyChanged(BR.author)
        }

    @get:Bindable
    var content: String = content
        set(value) {
            field = value
            notifyChange()
        }
}